@charset 'UTF-8';
@import '../../config/scss/function.scss', '../../config/scss/config.scss';

.home {
    .photo-wall {
        height: 600px;
        background-image: url('./imgs/index-bg.png');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        -webkit-background-size: cover;
        padding-top: 125px;
        text-align: center;

        .title {
            font-size: 50px;
            margin-bottom: 28px;
        }

        .sumary {
            margin: 0 auto;
            font-size: 18px;
            line-height: 40px;
            max-width: 330px;
            text-align: center;
        }

        .top-btns {
            margin-top: 65px;

            a {
                font-size: 21px;
                padding: 10px 30px;
                background-color: $c1;
                border-radius: 30px;
                color: #fff !important;

                &.top-btn-suoyou {
                    background-color: #fff;
                    color: $c1 !important;
                    margin-left: 10px;
                }
            }
        }
    }

    .advantages.container {
        padding-top: 65px;
        padding-bottom: 65px;
        @media (min-width: 768px) {
          .col-sm-offset-1-half {
              margin-left: 4.166666665%;
          }
        }

        .tip-border {
            margin-top: 5px;
            margin-bottom: 5px;
            border: 2px solid $c5;
            border-radius: 5px;
            height: 270px;

            .content,
            .line,
            .tip,
            .tip-img {
                text-align: center;
            }

            .tip-img {
                margin-top: 21px;

                img {
                    width: 48px;
                    height: 48px;
                }

                span {
                    font-size: 50px;
                    color: $c1;
                }
            }

            .tip {
                margin-top: 19px;
            }

            .line {
                margin-top: 13px;
                width: 20%;
                margin: 0 auto;
                height: 2px;
                background-color: $c1;
                transition: width 0.4s;
            }

            .content {
                margin-top: 12px;
                font-size: 15px;
                color: $c2;
            }
        }

        .tip-border:hover {
            border-color: $c1;

            .line {
                width: 50%;
            }
        }
    }

    .carousel {
        background-color: #fcfcfc;

        .title {
            padding-top: 50px;
            font-size: 35px;
            font-weight: bolder;
            text-align: center;
            padding-bottom: 40px;

            .line {
                width: 65px;
                height: 4px;
                background-color: $c1;
                margin: 0 auto;
            }
        }

        .carousel {
            width: 100%;
        }

        .carousel-indicators li {
            background-color: $c6;
            margin-left: 15px;
            width: 10px;
            height: 10px;
            border: 0;

            &.active {
                background-color: $c1;
            }
        }

        .carousel-control {
            background-image: none;
            text-align: end;
            display: flex;
            flex-direction: column;
            justify-content: center;
            width: 18%;

            img {
                width: 25px;
            }
        }

        .carousel-control-left {
            align-items: flex-end;
            padding-right: 25px;
        }

        .carousel-control-right {
            align-items: flex-start;
            padding-left: 25px;
        }

        .carousel-inner {
            width: 64%;
            height: 385px;
            margin: 0 auto;

            .item {
                width: 100%;

                .img-content {
                    width: 100%;
                    display: flex;
                    flex-flow: row nowrap;

                    img {
                        width: 66%;
                    }

                    .carousel-caption-content {
                        background-color: #fff;
                        width: 34%;
                        display: flex;
                        flex-direction: column;
                        align-items: center;

                        .carousel-caption-content-title {
                            margin-top: 50px;
                            margin-bottom: 21px;
                            font-size: 27px;
                            font-weight: bolder;
                        }

                        .carousel-caption-content-content {
                            margin: 0 27px;
                            color: $c2;
                            text-align: center;
                        }

                        .carousel-caption-content-btn {
                            margin-top: 50px;
                            padding: 10px 35px;
                            color: #fff !important;
                            border-radius: 30px;
                            background-color: $c1;
                            font-size: 18px;
                            font-weight: bolder;
                        }
                    }
                }
            }
        }
    }

    .steps {
        background-color: $c6;

        .title {
            padding-top: 50px;
            font-size: 35px;
            font-weight: bolder;
            text-align: center;
            padding-bottom: 40px;

            .line {
                width: 65px;
                height: 4px;
                background-color: #58c676;
                margin: 0 auto;
            }
        }

        .row {
            width: 64%;
            margin: 0 auto;

            .step {
                margin-bottom: 70px;

                .step-title-left,
                .step-title-right {
                    padding-top: 40px;

                    img {
                        width: 120px;
                        margin-top: 20px;
                    }

                    .step-title-tip {
                        position: relative;
                        top: -55px;
                        left: 60px;
                        font-size: 22px;

                        span {
                            color: $c1;
                            font-weight: bold;
                        }
                    }
                }

                .step-title-right {
                    text-align: right;

                    .step-title-tip {
                        position: relative;
                        top: -55px;
                        left: -45px;
                    }
                }

                .step-content-left {
                    color: #999999;
                }

                .step-content-right {
                    color: #999999;
                    text-align: right;
                }
            }

            .step-img {
                margin-bottom: 70px;

                img {
                    width: 100%;
                }
            }
        }
    }

    .contact {
        margin-bottom: 123px;

        .title {
            padding-top: 63px;
            font-size: 35px;
            font-weight: bolder;
            text-align: center;
            padding-bottom: 56px;

            .line {
                margin-bottom: 19px;
                width: 65px;
                height: 4px;
                background-color: #58c676;
                margin: 0 auto;
            }
        }

        .row {
            width: 64%;
            margin: 0 auto;
            background-image: url('./imgs/map-bg.png');
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            -moz-background-size: cover;
            -o-background-size: cover;
            -webkit-background-size: cover;
            min-height: 415px;

            .title-and-logo {
                margin-top: 130px;

                address {
                    line-height: 30px;

                    address,
                    p,
                    strong {
                        font-size: 17px;
                    }

                    .company {
                        padding-top: 35px;
                    }

                    strong {
                        font-size: 22px;
                        font-weight: bold;

                        img {
                            width: 40px;
                        }
                    }
                }
            }

            .map {
                margin-top: 75px;
                margin-bottom: 40px;

                img {
                    width: 100%;
                }
            }
        }
    }

    @media screen and (max-width: 768px) {
        .photo-wall {
            padding-top: 0;
            height: 450px;

            .title {
                padding-top: 70px;
                font-size: 32px;
            }

            .sumary {
                font-size: 14px;
                width: 260px;
            }
        }

        .advantages-xs {
            &.container {
                padding-bottom: 0;
            }

            .row > div {
                margin-top: 20px;
                margin-bottom: 20px;
                border-left: 1px solid $c5;

                &:first-child {
                    border-left: 0;
                }

                span {
                    font-size: 40px;
                    color: $c1;
                }
            }
        }

        .carousel {
            .title {
                padding-top: 30px;
                padding-bottom: 20px;
                font-size: 15px;

                .line {
                    margin-top: 15px;
                }
            }

            .carousel-inner {
                width: 100%;
                height: 240px;

                .item {
                    .img-content {
                        .carousel-caption-content {
                            .carousel-caption-content-title {
                                margin-top: 30px;
                                margin-bottom: 12px;
                                font-size: 17px;
                            }

                            .carousel-caption-content-content {
                                font-size: 11px;
                            }

                            .carousel-caption-content-btn {
                                font-size: 14px;
                                margin-top: 20px;
                                padding: 5px 15px;
                            }
                        }
                    }
                }
            }
        }

        .steps-xs {
            .title {
                padding-top: 30px;
                padding-bottom: 20px;
                font-size: 15px;
                font-weight: bold;
                text-align: center;

                .line {
                    width: 65px;
                    height: 4px;
                    background-color: $c1;
                    margin: 0 auto;
                    margin-top: 15px;
                }
            }

            .row > div{
              h4{
                span{
                  color: $c1;
                }
              }

              p{
                color: $c4;
              }

              &:last-child{
                padding-top: 10px;
                padding-left: 0;
                height: 100%;
                img{
                  width: 100%;
                }
              }
            }
        }

        .contact-xs {
          .title {
              padding-top: 30px;
              padding-bottom: 20px;
              font-size: 15px;
              font-weight: bold;
              text-align: center;

              .line {
                  width: 65px;
                  height: 4px;
                  background-color: $c1;
                  margin: 0 auto;
                  margin-top: 15px;
              }
          }

          .map-img{
            padding: 15px;

            img{
              width: 100%;
            }
          }
          .map-info{
            padding: 20px;
          }
        }
    }
}
